home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Libraries / Graphic Elements 2 / GEDemo / Walk.h < prev   
Encoding:
C/C++ Source or Header  |  1994-01-19  |  1.2 KB  |  71 lines  |  [TEXT/MPS ]

  1. /*
  2.     Walk.h
  3.     
  4.     Animated walking figure on balcony
  5.     
  6.     Copyright 1993 by Al Evans. All rights reserved.
  7.     
  8.     11/8/93
  9.     
  10. */
  11.  
  12. #ifdef applec
  13. #ifndef __cplusplus
  14. #ifndef PRELOAD
  15. #pragma load "::ToolKit.precompile"
  16. #define PRELOAD
  17. #endif
  18. #endif
  19. #endif
  20.  
  21. #ifndef GRAPHELEMENTS
  22. #include "GraphElements.h"
  23. #endif
  24.  
  25. #ifndef GESENSORS
  26. #include "Sensors.h"
  27. #endif
  28.  
  29. //Resource numbers of PICTs making up balcony scene
  30.     
  31. #define rBalconyPic        220
  32. #define rAnimWalk        501
  33. #define    rSliderBkg        750
  34. #define rSliderCtrl        751
  35.  
  36. //Position of balcony
  37. #define balconyLeft        94
  38. #define balconyTop        131
  39.  
  40. //Position of speed control
  41. #define sliderLeft        48
  42. #define sliderTop        54
  43.  
  44. //Balcony scene planes
  45. #define walkPlane        3
  46. #define balconyPlane    13
  47. //#define balconyPlane    walkPlane + 1
  48. #define sliderPlane        4
  49.  
  50. //Balcony scene IDs
  51.  
  52. #define walkID            'CEA '
  53. #define balconyID        'BALC'
  54. #define sliderID        'SCTL'
  55.  
  56. #ifdef __cplusplus
  57. extern "C" {
  58. #endif
  59.  
  60. Boolean LoadBalconyScene(GEWorldPtr world);
  61.  
  62. //Autochange proc for walk animation
  63. pascal void DoWalker(GEWorldPtr world, GrafElPtr walker);
  64.  
  65. //Callback proc for speed control slider
  66. pascal void AdjustSpeed(GEWorldPtr world, short newSpeed);
  67.  
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71.